//
//  ADJgSDKInterstitialAdContainer.h
//  AnyThinkSDKDemo
//
//  Created by 刘娟 on 2024/9/25.
//  Copyright © 2024 抽筋的灯. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ADJgSDK/ADJgSDKIntertitialAd.h>
@class ADJgSDKInterstitialAdContainer;
NS_ASSUME_NONNULL_BEGIN

@protocol ADJgSDKInterstitialAdContainerDelegate <NSObject>
/**
 *  插屏广告素材加载成功
 */
- (void)jgsdkContainer_jgsdkInterstitialAdDidLoad:(ADJgSDKInterstitialAdContainer *)InterstitialAd withPrice:(NSInteger)bidPrice;

/**
 *  插屏广告请求失败
 */
- (void)jgsdkContainer_jgsdkInterstitialAdFailLoadError:(NSError *)error;

@end

@interface ADJgSDKInterstitialAdContainer : NSObject

@property (nonatomic, weak)id<ADJgSDKInterstitialAdContainerDelegate> containerDelegate;

@property (nonatomic, weak)id<ADJgSDKIntertitialAdDelegate> delegate;

/// 初始化容器
- (instancetype)initPosId:(NSString *)posId delegate:(id<ADJgSDKIntertitialAdDelegate>)delegate;

/// 加载
- (void)loadInterstitialAd;

/// 展示
- (void)showInterstitialAdWithRootViewController:(UIViewController *)controller;

/// 销毁
- (void)close;

///获取竞价价格
- (NSInteger)getBidPrice;
@end

NS_ASSUME_NONNULL_END
